import { getAction, deleteAction, putAction, postAction, downFilePost } from '@/api/manage'

const serviceName = '/incident-server'
//首页-各类型总数
const getByTypeTotal = params => getAction(`${serviceName}/homePage/getByTypeTotal`, params)
//首页-反走私情报类型
const getByIntelligenceType = params => getAction(`${serviceName}/homePage/getByIntelligenceType`, params)
//首页-重点人情报数量变化趋势
const getFocusByIntelligenceTrend = params => getAction(`${serviceName}/homePage/getFocusByIntelligenceTrend`, params)
//告警类型占比
const getAlarmTypeRatio = params => postAction(`alarm-server/alarmCenterMessage/getAlarmTypeRatio`, params)
const isApprover = params => getAction(`/flow-server/processApproval/isApprover`, params)


/**
 * 综治组织及综合业务
 */

//综治中心
const institution = params => getAction(`/api/xl-comprehensive-management-mechanism/mechanismList`,params)


export { getByTypeTotal, getByIntelligenceType, getAlarmTypeRatio, getFocusByIntelligenceTrend, isApprover,institution}